window.onload=function(){
	
		
				//运维人员业绩分类切换
				var perfor=document.getElementsByClassName("perfor")[0];
				var starcomplain=document.getElementsByClassName("starcomplain")[0];
				var oper_perf_table=$("oper_perf_table");
				var oper_star_table=$("oper_star_table");
				
				perfor.onclick=function(){
					 styleDisplayBlock(oper_perf_table);
					 styleDisplaynone(oper_star_table);
				};
				
				starcomplain.onclick=function(){
					styleDisplaynone(oper_perf_table);
					styleDisplayBlock(oper_star_table);
				};
				
				
				//工单统计报表分类切换
				var department=document.getElementsByClassName("department")[0];
				var fault=document.getElementsByClassName("fault")[0];
				var department_table=$("department_table");
				var fault_table=$("fault_table");
				
				department.onclick=function(){
					 styleDisplayBlock(department_table);
					styleDisplaynone(fault_table);
				};
				fault.onclick=function(){
					styleDisplaynone(department_table);
					 styleDisplayBlock(fault_table);
				};
	function $(id){
		return document.getElementById(id);
	}
	function styleDisplayBlock(ele){//点击元素显示
		return ele.style.display="block";
	}
	function styleDisplaynone(ele){//点击元素隐藏
		return ele.style.display="none";
	}




};



//以下是点击出现弹框增加故障分类的js代码
function addKind(){
    document.getElementById("addKind").style.display="block";
}
function closeBox(){
    document.getElementById("addKind").style.display="none";
}
